package com.egoonet.dao;

import com.egoonet.domain.Department;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 *
 * Created by wchi on 2017/4/22.
 */
public interface DepartmentRepository extends JpaRepository<Department, Long>{
    List<Department> findByParentId(Long parentId);
}
